package com.prs.crm.domain.ca.work;


import java.util.Set;

import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.OneToMany;
import javax.persistence.Table;

import com.prs.crm.domain.BaseEntity;

/**
 * @author YangHao
 * @E-Mail:450098606@qq.com
 * @qq:450098606
 * @version 创建时间：22012-3-28 15:53:24 物品类别
 */
@Entity
@Table(name = "ca_articleType")
public class ArticleTypes extends BaseEntity {

	private static final long serialVersionUID = -4463478685104832803L;
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Integer id;
	/**
	 * 类别名称
	 */
	private String ca_at_typeName;
	/**
	 * 说明
	 */
	private String ca_at_remark;
	
	@OneToMany(fetch=FetchType.LAZY,mappedBy="ai_articleType")
	private Set<ArticleInfo> articleInfo;

	@OneToMany(fetch=FetchType.LAZY,mappedBy="articleType")
	private Set<Storeparticular> storeParticular;
	
	@OneToMany(fetch=FetchType.LAZY,mappedBy="di_articletype")
	private Set<DemandInventory> demandInventory;
	
	@OneToMany(fetch=FetchType.LAZY,mappedBy="tp_articleType")
	private Set<TookParticular> tookParticulars;

	
	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public Set<TookParticular> getTookParticulars() {
		return tookParticulars;
	}

	public void setTookParticulars(Set<TookParticular> tookParticulars) {
		this.tookParticulars = tookParticulars;
	}

	public Set<DemandInventory> getDemandInventory() {
		return demandInventory;
	}

	public void setDemandInventory(Set<DemandInventory> demandInventory) {
		this.demandInventory = demandInventory;
	}

	public Set<Storeparticular> getStoreParticular() {
		return storeParticular;
	}

	public void setStoreParticular(Set<Storeparticular> storeParticular) {
		this.storeParticular = storeParticular;
	}

	public Set<ArticleInfo> getArticleInfo() {
		return articleInfo;
	}

	public void setArticleInfo(Set<ArticleInfo> articleInfo) {
		this.articleInfo = articleInfo;
	}

	public String getCa_at_typeName() {
		return ca_at_typeName;
	}

	public void setCa_at_typeName(String caAtTypeName) {
		ca_at_typeName = caAtTypeName;
	}

	public String getCa_at_remark() {
		return ca_at_remark;
	}

	public void setCa_at_remark(String caAtRemark) {
		ca_at_remark = caAtRemark;
	}
	public ArticleTypes(){	
	}
}
